<?php
/**
 * 数据库配置文件
 * User: yuesir
 * Date: 2016/4/29
 * Time: 22:45
 */

$config = array(
    'master' => array(
        'type'     => 'MySQL',
        'host'     => '127.0.0.1',
        'user'     => 'root',
        'password' => '',
        'dbname'   => 'test'
    ),

    'slave' => array(
        'slave1'       => array(
            'type'     => 'MySQL',
            'host'     => '127.0.0.1',
            'user'     => 'root',
            'password' => '',
            'dbname'   => 'test'
        ),

        'slave2' => array(
            'type'     => 'MySQL',
            'host'     => '127.0.0.1',
            'user'     => 'root',
            'password' => '',
            'dbname'   => 'test'
        ),
    ),
);

return $config;